package com.kintreda.ieco_server.module.order.service.impl;

import com.kintreda.ieco_server.bean.order.Unsuitable;
import com.kintreda.ieco_server.core.service.impl.BaseServiceImpl;
import com.kintreda.ieco_server.module.order.service.IUnsuitableService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Created by IntelliJ IDEA
 * @Project_Name ieco_server
 * @Package com.kintreda.ieco_server.module.order.service.impl
 * @Author ZhongYao_H
 * @Date 2019/5/9:15:34
 * @Year 2019 Month 05 Day 09
 * @Date_zh 2019 年 五月 星期四
 */
@Service
public class UnsuitableServiceImpl extends BaseServiceImpl<Unsuitable,String> implements IUnsuitableService {
    @Override
    public Unsuitable getByRecyId(String id) {
        List<Unsuitable> query = query("from Unsuitable where recyId = ? ", new Object[]{id});
        return query.size()>0?query.get(0):null;
    }
}
